import type { ITableConfig } from '@/components/table/type'

import { getUserList } from '@/service/user/user'
const userTableConfig: ITableConfig = {
  tableColumns: [
    { prop: 'name', label: '用户名', width: '120px' },
    { prop: 'realname', label: '真实姓名', width: '120px' },
    { prop: 'enable', label: '状态', width: '100px', slotName: 'status' },
    { prop: 'cellphone', label: '电话', width: '150px' },
    { prop: 'createAt', label: '创建时间', slotName: 'createAt' },
    { prop: 'updateAt', label: '更新时间', slotName: 'updateAt' },
    { label: '操作', slotName: 'handler' }
  ],
  showIndexColumn: true,
  showSelectColumn: true,
  getData: getUserList
}

export { userTableConfig }
